﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;

namespace dnnScanFreeClient
{
    partial class AppSettings : Form
    {
        public AppSettings()
        {
            InitializeComponent();
            this.txtImportPath.Text = Properties.Settings.Default.ImportPath;
            this.txtDestinationPath.Text = Properties.Settings.Default.DestinationPath;
            this.txtSQLConnectionString.Text = Properties.Settings.Default.SqlConnectionString;
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            Properties.Settings.Default.ImportPath = this.txtImportPath.Text;
            Properties.Settings.Default.DestinationPath = this.txtDestinationPath.Text;
            Properties.Settings.Default.SqlConnectionString = this.txtSQLConnectionString.Text;
            Properties.Settings.Default.Save();
            this.Close();
        }
    }
}
